package com.protocol.sentjson;

import java.io.Serializable;

/**
 * @Title: JsonResult.java
 * @Package com.utils
 * @author 孙梦楠
 * @date 2017年7月14日 上午8:58:08
 * @version V1.0.0
 */

@SuppressWarnings("serial")
public class JsonResult<T> implements Serializable {

	// 标志位
	private int state;
	// 返回信息
	private String message = "";
	// 数据
	private T data;

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public JsonResult() {
		// TODO Auto-generated constructor stub
	}

	public JsonResult(int state, String message, T data) {
		super();
		this.state = state;
		this.message = message;
		this.data = data;
	}

	@Override
	public String toString() {
		return "JsonResult [state=" + state + ", message=" + message + ", data=" + data + "]";
	}

}
